package com.example.sqlitetest.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageButton;

import com.example.sqlitetest.Bean.Student;
import com.example.sqlitetest.R;

public class StudentActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_student);
        skipRoute();
    }
    public void skipRoute() {
        ImageButton queryRoute = (ImageButton) findViewById(R.id.queryRoute);
        queryRoute.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(StudentActivity.this,StudentListActivity.class);
                startActivity(intent);
                finish();
            }
        });
    }
}
